<?php
/**
 * RPC接口地址
 */
return [
    'app\service\RpcService' => [
        /**
         * 不带前缀的测试接口
         */
        /*'routes' => [
            ['name' => 'test1', 'path' => 'TestRpc@test'],
            ['name' => 'test2', 'path' => 'TestRpc@test'],
        ],*/
        /**
         * 带前缀测试接口
         */
        'test' => [
            'routes' => [
                ['name' => 'test', 'path' => 'TestRpc@test'],
            ]
        ],
        /**
         * 短信服务
         */
        'sms' => [
            'routes' => [
                ['name' => 'single', 'path' => 'SmsRpc@sendSms'],
            ],
        ],
        /**
         * 文件服务
         */
        'files' => [
            'routes' => [
                ['name' => 'uploadFile', 'path' => 'FileRpc@uploadFile'],
            ],
            //多级前缀支持
            /*'V1' => [
                'routes' => [
                    ['name' => 'test1', 'path' => 'TestRpc@test'],
                    ['name' => 'test2', 'path' => 'TestRpc@test'],
                ],
                'C1' => [
                    'routes' => [
                        ['name' => 'test1', 'path' => 'TestRpc@test'],
                        ['name' => 'test2', 'path' => 'TestRpc@test'],
                    ],
                ]
            ],*/
        ],
    ]
];